#pragma once
#include <windows.h>

//---------------------------------------------------------------------------
class WWindow
{
public:
	// We will use a default constructor to declare a window
	WWindow();
	// The Create() method wil be used to initialize a window
	HWND Create(HINSTANCE hinst,
		    LPCTSTR clsname,
     		    LPCTSTR wndname,
	            HWND parent   = NULL,
	            DWORD dStyle  = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_HSCROLL | WS_VSCROLL,
				DWORD dXStyle = WS_EX_OVERLAPPEDWINDOW,
		    int x         = CW_USEDEFAULT,
                    int y         = CW_USEDEFAULT,
		    int width     = CW_USEDEFAULT,
                    int height    = CW_USEDEFAULT);

	// This method will be used to display the window
	BOOL Show(int dCmdShow = SW_SHOWNORMAL);

	// Because each window is of type HWND, we will need a way
	// to recognize the window handle when used in our application
	operator HWND();
	
	//HWND CreateToolbar( HWND hwnd );
// Accessories
public:
	void SetText(LPCTSTR strCaption);
	//HWND GetToolbarHWND() { return _hwndTool; }

protected:
	// This will be a global handle available to
	// this and other windows
	HINSTANCE _hInst;
	HWND _hwnd;
	//HWND _hwndTool;
};
//---------------------------------------------------------------------------
